bitkeeper revision 1.1159.165.1 (418aa0f4koam0mhscMMP2HGuqLK5kQ)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 4 Nov 2004 21:36:52 +0000 (21:36 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 4 Nov 2004 21:36:52 +0000 (21:36 +0000)
install.sh now does a few checks to warn the user if prerequisite tools are missing.

Makefile
install.sh
tools/check/chk

index 37884961610aaecc4e2736df14169e77b94b4210..ef17e6880f41729ac6e9bb49885a76e9b0e00126 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,8 @@ dist: xen tools kernels docs
        install -m0644 ./COPYING $(DIST_DIR)
        install -m0644 ./README $(DIST_DIR)
        install -m0755 ./install.sh $(DIST_DIR)
+       mkdir -p $(DIST_DIR)/check
+       cp tools/check/chk /tools/check/check_* $(DIST_DIR)/check
 
 # install everything into the standard system directories
 # NB: install explicitly does not check that everything is up to date!
index 6e12009660a6a1530c4fa545c3b0b96e7a7db2f1..f21294f5f7e163a8f0e0050853c12cbd77f144fc 100755 (executable)
@@ -26,4 +26,9 @@ echo "Installing Xen from '$src' to '$dst'..."
 cp -fdR $src/* $dst
 echo "All done."
 
+echo "Checking to see whether prerequisite tools are installed..."
+cd $src/../check
+./chk install
+echo "All done."
+
 exit 0
index 16de110bc1719a09454cb84a965f700679eaa3ea..0ebce4799e863e231067c3cc2282ea08336d6b09 100755 (executable)
@@ -63,7 +63,7 @@ done
 echo >> ${info}
 
 if [ "$failed" == "1" ] ; then
-    echo "Checks failed. See ${info} for details."
+    echo "Checks failed. See `pwd`/${info} for details."
     echo "FAILED" >> ${info}
     exit 1
 else